import axios from './axios'

// 厂商订货-新建/补单
export function orderBuild(data){
  return axios({
    method: 'post',
    url:'/manufacturer-order-sales/manufacturerOrderBuild',
    data
  })
}

// 厂商订货-确认
export function confirmOrder(params){
  return axios({
    method: 'put',
    url:'/manufacturer-order-sales/confirm',
    params
  })
}

// 厂商订货-改单
export function modify(data){
  return axios({
    method: 'put',
    url:'/manufacturer-order-sales/modify',
    data
  })
}

// 厂商订货-查询
export function orderQuery(data){
  return axios({
    method: 'post',
    url:'/manufacturer-order-sales/manufacturerOrderQuery',
    data
  })
}

// 厂商订货合计
export function totalQuery(data){
  return axios({
    method: 'post',
    url:'/manufacturer-order-info-one/manufacturerOrderTotalQuery',
    data
  })
}

// 厂商订货删除
export function remove(data){
  return axios({
    method: 'delete',
    url:'/manufacturer-order-sales/remove',
    data
  })
}

// 厂商订货清空
export function empty(params){
  return axios({
    method: 'delete',
    url:'/manufacturer-order-sales/empty',
    params
  })
}